#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "FileListModel.h"
#include "scripteditor.h"


namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
  Q_OBJECT

public:
  explicit MainWindow(QWidget *parent = 0);
  ~MainWindow();

private:
  Ui::MainWindow *ui;
  FileListModel *fileListModel;

  QStringList genScriptLines();

  ScriptEditor *scriptEditor;

  void closeEvent(QCloseEvent *event) override;

  void setupEditor();

protected:
  void dragEnterEvent(QDragEnterEvent *event) override;
  void dropEvent(QDropEvent *event) override;

private slots:
  void popMsg(QString s);
  void openFiles();
  void removeSelectedFiles();
  void removeAllFiles();
  void removeIllegalFiles();
  void exportScript();
  void openConfigFolder();

  void aboutQt();
  void aboutMe();
  void downloadFFmpeg();
  void howToUseScript();

};

#endif // MAINWINDOW_H
